<!-- 假设这是 p/p/bank1.0/all/all/templates/change_password.html 文件 -->
{% extends "customer_base.html" %}

{% block content %}
<div class="card border-0 shadow-sm">
    <div class="card-header bg-white border-0 py-3">
        <h5 class="mb-0"><i class="bi bi-lock me-2"></i> 修改密码</h5>
    </div>
    <div class="card-body">
        <form method="POST" action="{{ url_for('change_password') }}">
            <div class="mb-3">
                <label for="old_password" class="form-label">旧密码</label>
                <input type="password" class="form-control" id="old_password" name="old_password" required>
            </div>
            <div class="mb-3">
                <label for="new_password" class="form-label">新密码</label>
                <input type="password" class="form-control" id="new_password" name="new_password" required>
            </div>
            <div class="mb-3">
                <label for="confirm_password" class="form-label">确认新密码</label>
                <input type="password" class="form-control" id="confirm_password" name="confirm_password" required>
            </div>
            <div class="d-flex justify-content-end">
                <a href="{{ url_for('customer_portal') }}" class="btn btn-secondary me-2">取消</a>
                <button type="submit" class="btn btn-primary">修改密码</button>
            </div>
        </form>
    </div>
</div>
{% endblock %}